package mes.kanban.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 预览
 * @author gjy
 *
 * 2018年3月15日下午4:26:25
 */
@Controller
public class PreviewController {
	
	@GetMapping("/previewVideo")
	public String previewVideo(Model model,@RequestParam("materialName")String materialName) {
		
		model.addAttribute("materialName", materialName);
		
		return "/preview/video";
	}
	
	@GetMapping("/previewPicture")
	public String previewPicture(Model model,@RequestParam("materialName")String materialName) {
		
		model.addAttribute("materialName", materialName);
		
		return "/preview/pic";
	}

}
